@echo off
echo Starting Real gRPC Proxy Server...
echo.

cd /d "%~dp0"

echo Checking if Node.js is installed...
node --version >nul 2>&1
if errorlevel 1 (
    echo ERROR: Node.js is not installed or not in PATH
    echo Please install Node.js from https://nodejs.org/
    pause
    exit /b 1
)

echo Node.js found. Starting real proxy server...
echo.
echo This proxy will forward requests to your C# gRPC server on port 22002
echo Make sure your C# server is running!
echo.

node proxy.js

pause 